package ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.authorizeRFCPanel.authorizeRFCPanelSubs;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JScrollPane;

import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.authorizeRFCPanel.AuthorizeRFCPanel;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.authorizeRFCPanel.authorizeRFCPanelSubs.listeners.ShowRFCButtonListener;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.mainframeSub.RFCDisplayTable;

public class AuthorizeRFCListPanel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private RFCDisplayTable displayTable;
	private JScrollPane scrollPane;

	public AuthorizeRFCListPanel(AuthorizeRFCPanel authorizeRFCPanel) {

		this.setLayout(new BorderLayout());

		this.displayTable = new RFCDisplayTable();
		this.displayTable.addMouseListener(new ShowRFCButtonListener(authorizeRFCPanel));

		this.scrollPane = new JScrollPane(this.displayTable);

		this.add(scrollPane);
	}

	public RFCDisplayTable getDisplayTable() {
		return displayTable;
	}

}
